﻿using Gwn.Library.MvpVm.Base;
using Gwn.Library.MvpVm.Modules;
using Gwn.Module.Security;
using Gwn.Module.UserManager;
using Microsoft.Practices.Prism.Modularity;

namespace Msdn.Magazine.MpvVm.Prism
{
    /// <summary>
    /// Bootstrapper
    /// </summary>
    public class MvpVmBootstrapper: GwnBootstrapper<MainWindow>
    {

        protected override void AddModules(ModuleCatalog moduleCatalog)
        {
            base.AddModules(moduleCatalog);

            // We're going to use the default security module (in the Gwn.Infrastructure project)
            moduleCatalog.AddModule(typeof(ApplicationControllerModule));
            moduleCatalog.AddModule(typeof(SecurityModule));
            moduleCatalog.AddModule(typeof(UserManagerModule));
        }

    }
}
